<?php
/*
Template Name: Home Template
*/
?>
<?php get_header(); ?>

		<div id="main">
			<div id="content" role="main" class="home-template">
				<?php the_post(); ?>
				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
					<h1 class="entry-title"><?php the_title(); ?></h1>
					<div class="entry-content">
						<?php the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', 'TecBridge' )  ); ?>
						<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'TecBridge' ) . '</span>', 'after' => '</div>' ) ); ?>
					</div><!-- .entry-content -->
					<div class="entry-utility">
						<?php edit_post_link( __( 'Edit', 'TecBridge' ), '<span class="edit-link">', '</span>' ) ?>
					</div><!-- #entry-utility -->
				</article>
				
				<?php query_posts(array('post_type'=>'casestudy')); ?>
				<?php if (have_posts()) : ?>
					<div id="casestudy" class="column-section no_addthis">
						<?php for($i = 1; $i <= 4; $i++) :  ?>
							<?php if (have_posts()) : the_post();?>
								<?php get_template_part( 'content', 'casestudy'); ?>
							<?php else: break;?>
							<?php endif; ?>
						<?php endfor; ?>
					</div>
				<?php endif; ?>
			</div>
		</div>

<?php get_footer(); ?>